﻿using System.ComponentModel;

namespace zTalk
{
    public class UserItem : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        private string username;   
        private UserStatus status;
        private string about;
        private string avatar;

        private void onPropertyChanged(string name)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(name));
            }
        }

        #region Properties

        public string Username
        {
            get { return username; }
            set { username = value; onPropertyChanged("Username"); }
        }

        public UserStatus Status
        {
            get { return status; }
            set { status = value; onPropertyChanged("Status"); }
        }

        public string About
        {
            get { return about; }
            set { about = value; onPropertyChanged("About"); }
        }

        public string Avatar
        {
            get { return avatar; }
            set { avatar = value; onPropertyChanged("Avatar"); }
        }

        #endregion
   
    }
}